interface Point {
  x: number;
  y: number;
}
/**
 * 通过两点坐标计算弧度
 * @param point1 
 * @param point2 
 * @returns 
 */
const getRadian=(point1:Point, point2:Point): number => {
  const dx = point2.x - point1.x;
    const dy = point2.y - point1.y;
    
    // 使用Math.atan2来获取弧度值，它考虑了四个象限的情况
    const radians = Math.atan2(dy, dx);
    
  return radians;
}
export {
  getRadian
}